//
//  TogetherViewController.m
//  TogetherChat
//
//  Created by dllo on 16/4/20.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "TogetherViewController.h"
#import "EaseMessageViewController.h"
#import "ChatViewController.h"
@interface TogetherViewController ()

@end

@implementation TogetherViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton *btn = [UIButton buttonWithType:(UIButtonTypeSystem)];
    btn.frame = CGRectMake(100, 100, 100, 100);
    btn.backgroundColor = [UIColor cyanColor];
    [btn setTitle:@"chat" forState:(UIControlStateNormal)];
    [btn addTarget:self action:@selector(Chat:) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:btn];
}

-(void)Chat:(UIButton *)btn
{
    ChatViewController *chatVC = [[ChatViewController alloc] initWithConversationChatter:@"easeUIdemo2" conversationType:(EMConversationTypeChat)];
    chatVC.title = @"easeUIdemo2";
    [self.navigationController pushViewController:chatVC animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
